﻿using MediatR;
using SmartProduction.ErrorCode;
using SmartProduction.Read.API.Dtos;
using System.ComponentModel.DataAnnotations;

namespace SmartProduction.Read.API.Application.Commands.ClientInfoCommand
{
    /// <summary>
    /// 客户信息查询命令
    /// </summary>
    public class ClientInfoQueryCommand : IRequest<APIResult<APIPaing<ClientInfoDTO>>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoNumer { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool ClientInfoStatu { get; set; }
        /// <summary>
        /// 客户分类
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoClass { get; set; }
        /// <summary>
        /// 所在城市
        /// </summary>
        public int CountryCity { get; set; }

    }
}
